package com.weixing.mall.provider.model.dto;

import com.weixing.mall.base.enums.WhetherEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName SpecValueDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/8/9
 * @Version 1.0
 **/
@Data
@ApiModel(description = "商品规格值")
public class SpecValueDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "规格ID")
    @NotNull(message = "规格ID不能为空")
    private Long specId;

    @ApiModelProperty(value = "规格值")
    @NotNull(message = "规格值不能为空")
    private String specValue;
    @ApiModelProperty(value = "是否可用")
    @NotNull(message = "是否可用不能为空")
    private WhetherEnum isEnableEnum;
    @ApiModelProperty(value = "规格图片")
    private String specImg;

    @ApiModelProperty(value = "排序")
    private Integer orderBy;
    @ApiModelProperty(value = "备注（如颜色代码）")
    private String remark;
    @ApiModelProperty(value = "父节点ID")
    private  Long parentId;
    @ApiModelProperty(value = "层级")
    private  Long specLevel;

    @ApiModelProperty(value = "erpId")
    private String erpId;
}
